package com.heima.reggie.mapper;
import java.util.Collection;
import java.util.List;

import com.heima.reggie.domain.Dish;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
* @author liulanhui
* @description 针对表【dish(菜品管理)】的数据库操作Mapper
* @createDate 2023-01-03 14:00:36
* @Entity com.heima.reggie.domain.Dish
*/
@Mapper
public interface DishMapper extends BaseMapper<Dish> {


    Dish selectOneByCategoryId(@Param("categoryId") Long categoryId);

    List<Dish> selectAllByCategoryId(@Param("categoryId") Long categoryId);

    int updateStatusByIdIn(@Param("status") Integer status, @Param("idList") Collection<Long> idList);



}




